package com.cn.springcloudwechat.mapper.mapper.find.communication;

import com.cn.springcloudwechat.common.mybatis.Page;
import com.cn.springcloudwechat.model.find.communication.YmExchange;
import com.cn.springcloudwechat.model.find.communication.YmExchangeVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface YmExchangeMapper {
    int deleteByPrimaryKey(Long exchangeId);

    int insert(YmExchange record);

    int insertSelective(YmExchange record);

    YmExchange selectByPrimaryKey(Long exchangeId);

    int updateByPrimaryKeySelective(YmExchange record);

    int updateByPrimaryKeyWithBLOBs(YmExchange record);

    int updateByPrimaryKey(YmExchange record);

    List<YmExchangeVO> quertYmExchangeList(Page<YmExchangeVO> page,@Param("ymExchangeVO")YmExchangeVO ymExchange);

    YmExchangeVO selectVoById(Long exchangeId);

    YmExchangeVO selectVoByIdMrg(Long exchangeId);

    List<YmExchangeVO> quertYmExchangeListMrg(@Param("ymExchangeVO")YmExchangeVO ymExchangeVO, Page<YmExchangeVO> page);

    int updateByExchangeId(@Param("exchangeId")String[]exchangeId,@Param("state")String state);

    int updateTypeOrder(@Param("exchangeId")String exchangeId,@Param("typeOrder")String typeOrder);
}